import java.util.Scanner;

public class Job7 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入一个数");
        int a= scanner.nextInt();
        int b= 0, c = 0;
        int d=a;
        while (a!= 0) {
            b= a % 10;
            a = a / 10;
            c =c * 10 + b;
        }
        if (c==d) {
            System.out.println( "是回文数"+d);
        } else {
            System.out.println("不是回文数"+d);
        }
    }
}
